#!/usr/bin/env python
# coding=utf-8
# 15/2/27 23:53 zhuxuehuang

def fn_wp(fn):
    def f(arg):
        print("this is a fn_wp: " + fn.__name__)
        return fn(arg)
    return f


@fn_wp
def fn1(x):
    return x * x


@fn_wp
def fn2(x):
    return x * x * 2

print(fn1(8))
print(fn2(2))


